package com.ebs.md.api.orderbook;

/**
 * Revision Author:
 *  $File: //depot/MarketData/commons-md-api/MAIN/src/main/java/com/ebs/md/api/orderbook/OBSnapBasic.java $
 *  $Revision: #1 $
 *  $DateTime: 2012/07/25 09:30:43 $
 *  $Change: 112587 $
 *  $Author: Arik.Sher $
 */

import java.io.Serializable;

import com.ebs.md.api.IBookEntry;
import com.ebs.md.api.IOrderBook;
import com.ebs.md.api.Rate;


public class OBSnapBasic 
implements Serializable
{
	// gened via Eclipse
	private static final long serialVersionUID = 6043312154624620824L;
	
	protected Rate bestBid;
	protected Rate bestOffer;
	protected Rate worstBid;
	protected Rate worstOffer;
	
	protected int bidRatesCount;
	protected int offerRatesCount;
	
	public OBSnapBasic(IOrderBook<? extends IBookEntry> ob) {
		bestBid    = ob.getBestBid();
		bestOffer  = ob.getBestOffer();
		worstBid   = ob.getWorstBid();
		worstOffer = ob.getWorstOffer();
		bidRatesCount   = ob.getBidRatesCount();
		offerRatesCount = ob.getOfferRatesCount();
	}

	public Rate getBestBid() {
		return bestBid;
	}

	public Rate getBestOffer() {
		return bestOffer;
	}

	public Rate getWorstBid() {
		return worstBid;
	}

	public Rate getWorstOffer() {
		return worstOffer;
	}

	public int getBidRatesCount() {
		return bidRatesCount;
	}

	public int getOfferRatesCount() {
		return offerRatesCount;
	}
	
	
}
